<h2 class="title">留言</h2>
<table class="tb_term" width="100%">

<tr>
	<td class="alignright">标题:</td>
	<td><input type="text" class="txt-normal" size="50" name="title" value="{%$title%}" /></td>
</tr>

<tr>
	<td class="alignright">内容:</td>
	<td colspan="5"><textarea cols="70" rows="3" class="textarea_edit txt-normal" name="content">{%$content%}</textarea></td>
</tr>
<!--<tr>
	<td class="alignright">作者:</td>
	<td><input type="text" class="input_edit_num txt-normal" name="author" value="{%$author%}" /></td>
</tr>-->
</table>
<br>
<table class="tb_list">
<tr>
<td width="10%">回复</td>
<td>
<form name="form1" method="post" action="index.php?c=zy_guestbook&m=add_replay">
  <p>
    <textarea name="info" cols="80" rows="10"></textarea>
    <input type="hidden" name="id" value="{%$smarty.get.id%}">

</p>
  <p>
    <input type="submit" name="Submit" value="提交">
</p>
</form>
</td>
</tr>
</table>
<br>
<table width="50%" class="tb_list">
<tr>
<td>
回复内容
</td>
<td>
回复人
</td>
<td>
回复时间
</td>
</tr>
{%foreach item=list from=$list%}
<tr>
<td>
{%$list.content%}
</td>
<td>
{%get_username user_id=$list.author%}
</td>
<td>
{%$list.create_time|date_format:"%Y-%m-%d"%}
</td>
</tr>
{%/foreach%}
</table>